Skip to content

feat: Add tenant security headers (CSP/XSS) and update Branding/PhoneTemplate models#875

Merged
tanya732 merged 3 commits into
masterfrom
fern-bot/2026-06-09_05-03-20_632
Jun 10, 2026
Merged

feat: Add tenant security headers (CSP/XSS) and update Branding/PhoneTemplate models#875
tanya732 merged 3 commits into
masterfrom
fern-bot/2026-06-09_05-03-20_632

Conversation

@fern-api

@fern-api fern-api Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

This update primarily reflects changes to tenant security-header configuration, removal of branding identifier settings from the branding endpoint, and updates to the phone template schema.

Changes

New: Tenant security headers (CSP + XSS protection)

  • GetTenantSettingsResponseContent and UpdateTenantSettingsResponseContent now expose:
    securityHeaders, includeSessionMetadataInTenantLogs
  • New supporting types: TenantSettingsNullableSecurityHeaders, ContentSecurityPolicyConfig, CspReportingInfrastructure, CspPolicy, CspPolicyReporting, CspReportTo, CspReportToEndpoint, CspFlag and XssProtectionConfig.
  • New enums: CspPolicyMode (renamed from BrandingLoginDisplayEnum) and XssProtectionMode (renamed from UpdateBrandingLoginDisplayEnum).

⚠️ Breaking: Branding API schema changes

The Management API no longer exposes the identifiers object on the branding endpoint.

As a result:

identifiers has been removed from: GetBrandingResponseContent, UpdateBrandingRequestContent and UpdateBrandingResponseContent

The following generated types have been removed:
BrandingIdentifiers, UpdateBrandingIdentifiers, BrandingPhoneDisplay, UpdateBrandingPhoneDisplay, BrandingPhoneFormattingEnum and BrandingPhoneMaskingEnum

⚠️ Breaking: PhoneTemplate

  • PhoneTemplate.id (and the related Get/Update/ResetPhoneTemplateResponseContent) changed from String to Optional<String>.

Related response models have been updated accordingly:

GetPhoneTemplateResponseContent, UpdatePhoneTemplateResponseContent and ResetPhoneTemplateResponseContent

@fern-api fern-api Bot requested a review from a team as a code owner June 9, 2026 05:03
@tanya732 tanya732 changed the title SDK regeneration feat: Add tenant security headers (CSP/XSS) and update Branding/PhoneTemplate models Jun 10, 2026
tanya732
tanya732 previously approved these changes Jun 10, 2026
@tanya732 tanya732 enabled auto-merge (squash) June 10, 2026 10:45
@tanya732 tanya732 force-pushed the fern-bot/2026-06-09_05-03-20_632 branch from 764009f to 883fca3 Compare June 10, 2026 10:54
@tanya732 tanya732 merged commit 8bf9168 into master Jun 10, 2026
7 checks passed
@tanya732 tanya732 deleted the fern-bot/2026-06-09_05-03-20_632 branch June 10, 2026 11:03
@tanya732 tanya732 mentioned this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants